#!/bin/awk

BEGIN {
    FS = ":";
    count = 0;
}
{
    if($7 == "/sbin/nologin") {
        count +=1;
        print $0;
    }
}
END {
    print "count = "count;
}


